﻿using BCEntity.TMS.Order.OrderEvaluation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCData.TMS.Order.OrderEvaluation
{
    /// <summary>
    /// 订单评价
    /// </summary>
    public interface IOrderEvaluationData
    {
        /// <summary>
        /// 订单完成创建评价单
        /// </summary>
        /// <param name="orderEvaluationEntity">订单评价</param>
        /// <returns></returns>
        Task<OrderEvaluationEntity> Create(OrderEvaluationEntity orderEvaluationEntity);
        /// <summary>
        /// 用户评价司机
        /// </summary>
        /// <param name="orderEvaluationEntity">订单评价</param>
        /// <returns></returns>
        Task<OrderEvaluationEntity> UserEvaluate(OrderEvaluationEntity orderEvaluationEntity);
        /// <summary>
        /// 司机评价用户
        /// </summary>
        /// <param name="orderEvaluationEntity">订单评价</param>
        /// <returns></returns>
        Task<OrderEvaluationEntity> VehicleEvaluate(OrderEvaluationEntity orderEvaluationEntity);
        /// <summary>
        /// 获取订单评价
        /// </summary>
        /// <param name="orderId">订单Id</param>
        /// <returns></returns>
        Task<OrderEvaluationEntity> GetEntity(long orderId);


    }
}
